<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="net.skyedu.dao.*" %>
<%@ page import="net.skyedu.bean.*" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	pageContext.setAttribute("path", path);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>班级学生信息</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" type="text/css" href="${path }/css/reset2.css">
	<link rel="stylesheet" type="text/css" href="${path }/css/main2.css"/>
	<link rel="stylesheet" type="text/css" href="${path }/css/star.css"/>
	<script type="text/javascript" src="${path }/js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="${path }/js/lhgdialog/lhgdialog.min.js?skin=discuz"></script>

	
  </head>
  
<body>
<script>
function upCourseReal(id,calNum)
{
	var path = $("#path").val()+'/win/modifyCourse.jsp?id='+id+'&claNum='+calNum;
    $.dialog({
    	lock:true,
    	fixed:true,
    	title:'修改课程大纲第'+calNum+'次课',
    	width:'880px',
		height:500,
    	content:'url:'+path,
		
    });
}

</script>
<%
	
    String  isout=request.getParameter("isOut");
	String id = request.getParameter("id");
	DaoSupport ds = new DaoSupport();
	List<SysOutline> list = ds.showOutline(Integer.parseInt(id));
	pageContext.setAttribute("id", id);
	pageContext.setAttribute("isout", isout);
	pageContext.setAttribute("list", list);
	pageContext.setAttribute("len", list.size());
	int i=0;
%>
<input type="hidden" id="path" value="<%=path %>"/>
<br/>
    <div>
      <table class="result">
        <tr>
          <th width="77">课次数</th>
          <th width="112">上课内容</th>
          <th width="131">教学目的</th>
          <th width="110">主要知识点</th>
          <th width="68">难易程度</th>
          	<c:if test="${isout==0}">
          <th width="77">修改内容</th>
          </c:if>
        </tr>
        <tr>
	      <c:choose>
		      <c:when test="${len!=0}">
			      <c:forEach items="${list}" var="li" varStatus="vs">
				      <tr>
				        <td width="77">第<%=++i %>次课</td>
			          	<td width="112" valign="top" class="temp">${li.claContent }</td>
			          	<td width="131" valign="top" class="temp">${li.teaAims }</td>
			          	<td width="110" valign="top" class="temp">${li.knowledge }</td>
			          	<td width="68">
			          	   <div id='stars' class='stars'>
			          	   <c:if test="${li.difficulty == 1}">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li>2</li>
					          		<li>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="${li.difficulty == 2}">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="${li.difficulty == 3}">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="${li.difficulty == 4}">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li class='on'>4</li>
					          		<li>5</li>
								</ul>
						  </c:if>
						  <c:if test="${li.difficulty == 5}">
					          	<ul>
					          		<li class='on'>1</li>
					          		<li class='on'>2</li>
					          		<li class='on'>3</li>
					          		<li class='on'>4</li>
					          		<li class='on'>5</li>
								</ul>
						  </c:if>
								<span></span>
								<p></p>
							</div>
			          	</td>
			          	<c:if test="${isout==0}">
			          	<td width="77"><a href='javascript:void(0);' onclick='upCourseReal(${id},${li.claCount });'>修改</a></a></td>
			          	</c:if>
					  </tr>
				  </c:forEach>
			  </c:when>
			  <c:otherwise>
			  	<tr><td colspan="6"><font color="red">无记录</font></td></tr>
			  </c:otherwise>
		  </c:choose>
        </tr>
      </table>
    </div>
    <br/>
</body>
</html>
